import { request } from 'umi';
import qs from 'qs';

export function add(params: any) {
  return request('/xxxxx', {
    method: 'POST',
    data: params,
  });
}

export function deleteById(params: { id: string }) {
  return request(`/xxxxx?${qs.stringify(params)}`, {
    method: 'POST',
  });
}
